//
//  GTNetWorkManager.m
//  GiftTalk
//
//  Created by Wan on 16/4/6.
//  Copyright © 2016年 Wan. All rights reserved.
//

#import "GTNetWorkManager.h"

@implementation GTNetWorkManager

static GTNetWorkManager *_instance;

+ (instancetype)shareNetWorkTool {
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _instance = [[self alloc] init];
    });
    
    return _instance;
}


+ (instancetype)allocWithZone:(struct _NSZone *)zone {
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _instance = [super allocWithZone:zone];
    });
    
    return _instance;
}

- (id)copyWithZone:(NSZone *)zone {
    return _instance;
}

- (instancetype)initWithBaseURL:(NSURL *)url {
    return [super initWithBaseURL:[NSURL URLWithString:@"http://api.liwushuo.com/"]];
}

@end
